FROM index.mindcoder.cn/docker/centos/base

# Configure Flink version
ARG FLINK_VERSION=1.7.1
ARG SCALA_VERSION=2.11

# Flink environment variables
ARG FLINK_INSTALL_PATH=/opt
ENV FLINK_HOME $FLINK_INSTALL_PATH/flink
ENV PATH $PATH:$FLINK_HOME/bin

ADD flink-1.7.1-bin-scala_2.11.tgz /opt/flink

#USER flink
ADD docker-entrypoint.sh /
WORKDIR=/opt/flink/bin
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["./start-cluster.sh"]
